import request from '@/utils/request';

const API = {
  LOGIN_URL: 'admin/employee/login',
  USERINFO_URL: 'admin/acl/index/info',
  LOGOUT_URL: 'admin/acl/index/logout',
};

// 登录
export const reqLogin = (data) => {
  return request.post(API.LOGIN_URL, data);
};

// 获取用户信息
export const reqUserInfo = () => {
  return request.get(API.USERINFO_URL);
};

// 退出登录
export const reqLogout = () => {
  return request.post(API.LOGOUT_URL);
};
